package com.dhcc.bpm.modules.content.service.impl;

import com.dhcc.bpm.modules.content.entity.Suggestion;
import com.dhcc.bpm.modules.content.vo.SuggestionVO;
import com.dhcc.bpm.modules.content.mapper.SuggestionMapper;
import com.dhcc.bpm.modules.content.service.ISuggestionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.metadata.IPage;

/**
 *  服务实现类
 *
 * @author donghang
 * @since 2020-03-16
 */
@Service
public class SuggestionServiceImpl extends ServiceImpl<SuggestionMapper, Suggestion> implements ISuggestionService {

	@Override
	public IPage<SuggestionVO> selectSuggestionPage(IPage<SuggestionVO> page, SuggestionVO suggestion) {
		return page.setRecords(baseMapper.selectSuggestionPage(page, suggestion));
	}

	@Override
	public IPage<SuggestionVO> selectSuggestionPageVO(IPage<SuggestionVO> page, SuggestionVO suggestion) {
		return page.setRecords(baseMapper.selectSuggestionPageVO(page, suggestion));
	}

	@Override
	public SuggestionVO selectDetailVO(SuggestionVO suggestion) {
		return baseMapper.selectDetailVO(suggestion);
	}

}
